package org.itstack.demo.design.user.impl;

import org.itstack.demo.design.user.User;
import org.itstack.demo.design.visitor.Visitor;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-29  13:39
 * @Description: 学生
 */
public class Student extends User {
    public Student(String name, String identity, String clazz) {
        super(name, identity, clazz);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public int ranking(){
        return (int)(Math.random()*100);
    }
}
